<div class="usercc">
	<div class="header_author"><a href="{:U('writer/listauthor')}">作家</a></div>
	<div class="user_me">
		<a href="{:U('Member/index')}" class="login_btn s-btn-def"><span class="fa fa-user-circle"></span>{$userinfo.nickname}</a>
		<div class="user-info">
			<empty name="userinfo.cover_id">
			<img class="user_avatar img-circle img-circle-50" src="/Public/blog/images/user.png"alt="" style="max-width:50px;max-height:50px;">
			<else />
			<img class="user_avatar img-circle img-circle-50" src="{$userinfo.cover_id|get_cover='path'}"alt="" style="max-width:50px;max-height:50px;" onerror="javascript:this.src='/Public/blog/images/user.png';">
			</empty>
			<div class="user_name">
				<span class="name1">{$userinfo.nickname}</span>
				<span class="name2"><span style="color:#999;">{$userinfo.description}</span></span>
				<a href="{:U('Member/editinfo')}" class="name-link">修改个人信息&nbsp;<font>>></font></a>
			</div>
			<div class="user-menu">
				<ul class="s-menu-list clearfix">
					<li class="list-item">
						<a href="{:U('Member/index')}">
							<i class="item_icon"><span class="fa fa-user-o"></span></i>
							<span class="item_text">用户中心</span>
						</a>
					</li>
					<li class="list-item">
						<a id="logout" href="{:U('Oauth/loginout')}">
							<i class="item_icon"><span class="fa fa-sign-out"></span></i>
							<span class="item_text">退出</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<div class="mod_sidebar" id="mod_sidebar">
	 <div class="side_login">
		<a href="{:U('Member/index')}" class="side_exit">
			<i class="login_icon"></i>{$userinfo.nickname}
		</a>
		<a href="{:U('Oauth/loginout')}" class="side_loginout">退出</a>
	</div> 
	<div class="side_menu"></div>
</div>
<script type="text/javascript">
$(function(){
	$('.login_btn').hover(function(){
		$('.user-info').show();
	});
	$('.user-info').mouseleave(function(){
		$(this).hide();
	})

	
})
</script>